Matthias Clasen [Wed, 2 Sep 2020 14:26:13 +0000 (10:26 -0400)]
text widgets: Don't lose focus after Emoji
Make sure to grab focus back when the Emoji chooser
disappears. This prevents focus going nowhere when
the Emoji chooser is canceled.
Fixes: #3112
Matthias Clasen [Wed, 2 Sep 2020 12:04:15 +0000 (08:04 -0400)]
textview: Fix placement of Emoji chooser
If the selection extends beyond the visible range,
place the Emoji chooser over the center of the window.
Fixes: #3109
Matthias Clasen [Tue, 1 Sep 2020 17:15:06 +0000 (13:15 -0400)]
NEWS: Updates
Matthias Clasen [Tue, 1 Sep 2020 23:06:01 +0000 (19:06 -0400)]
README: Cosmetics
Matthias Clasen [Tue, 1 Sep 2020 22:15:33 +0000 (22:15 +0000)]
Merge branch 'checkbutton-fixes' into 'master'
Checkbutton fixes
See merge request GNOME/gtk!2518
Goran Vidović [Tue, 1 Sep 2020 21:14:00 +0000 (21:14 +0000)]
Update Croatian translation
Matthias Clasen [Tue, 1 Sep 2020 20:31:07 +0000 (16:31 -0400)]
checkbutton: Don't notify write-only properties
Nobody is listening...
Matthias Clasen [Tue, 1 Sep 2020 19:57:14 +0000 (15:57 -0400)]
action helper: Drop G_GNUC_INTERNAL from headers
We haven't needed this for a long time now.
Matthias Clasen [Tue, 1 Sep 2020 19:31:24 +0000 (15:31 -0400)]
Add docs about grouping via action
Mention this in the docs for gtk_check_button_set_group
and gtk_toggle_button_set_group.
Matthias Clasen [Tue, 1 Sep 2020 19:25:26 +0000 (15:25 -0400)]
checkbutton: Support GtkActionable properly
Support grouping buttons via a radio action, as well
as via explicit gtk_check_button_set_group() calls.
Matthias Clasen [Tue, 1 Sep 2020 19:48:10 +0000 (15:48 -0400)]
actionhelper: Add a getter
Add a getter for the GtkActionHelper:role property.
Aurimas Černius [Tue, 1 Sep 2020 19:45:16 +0000 (22:45 +0300)]
Updated Lithuanian translation
Matthias Clasen [Tue, 1 Sep 2020 19:24:34 +0000 (15:24 -0400)]
checkbutton: Don't leak the action helper
Fran Dieguez [Tue, 1 Sep 2020 19:08:43 +0000 (19:08 +0000)]
Update Galician translation
Matthias Clasen [Tue, 1 Sep 2020 18:58:52 +0000 (18:58 +0000)]
Merge branch 'license-clarification' into 'master'
License clarification
See merge request GNOME/gtk!2517
Matthias Clasen [Tue, 1 Sep 2020 18:26:21 +0000 (18:26 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
Matthiasc/for master
Closes #3107
See merge request GNOME/gtk!2516
Matthias Clasen [Tue, 1 Sep 2020 18:11:28 +0000 (14:11 -0400)]
Add a license clarification
Matthias Clasen [Tue, 1 Sep 2020 18:22:09 +0000 (14:22 -0400)]
Move timsort sources to a subdirectory
This makes it easier to identify the files that
belong together, and are under the same license.
Matthias Clasen [Tue, 1 Sep 2020 17:06:20 +0000 (13:06 -0400)]
inspector: Plug another memory leak
Fixes: #3107
Matthias Clasen [Tue, 1 Sep 2020 17:01:34 +0000 (13:01 -0400)]
treelistrowsorter: Plug a memory leak
Matthias Clasen [Tue, 1 Sep 2020 16:56:51 +0000 (12:56 -0400)]
inspector: Plug a small memory leak
Benjamin Otte [Tue, 1 Sep 2020 16:42:09 +0000 (16:42 +0000)]
Merge branch 'listview-constructors' into 'master'
list widgets: Simplify the constructors
See merge request GNOME/gtk!2515
Matthias Clasen [Tue, 1 Sep 2020 16:24:06 +0000 (12:24 -0400)]
list widgets: Simplify the constructors
Now that both arguments to the _new_with_factory() constructors
are nullable, there's no good reason to keep a separate _new()
around. Just make gtk_list_view_new() and gtk_grid_view_new()
take both a model and a factory.
Matthias Clasen [Tue, 1 Sep 2020 13:44:38 +0000 (13:44 +0000)]
Merge branch 'projective-transform' into 'master'
Replace uses of graphene_matrix_transform_
See merge request GNOME/gtk!2514
Matthias Clasen [Tue, 1 Sep 2020 12:54:01 +0000 (08:54 -0400)]
Replace uses of graphene_matrix_transform_
Replace our uses of graphene_matrix_transform_point,
_point3d and _bounds by our own versions that handle
projective transforms correctly.
This fixes render node bounds being incorrect for widgets
involving projective transforms (e.g. testrevealer swing
transformations), and also fixes picking on such widgets.
Matthias Clasen [Tue, 1 Sep 2020 12:36:45 +0000 (08:36 -0400)]
gsk: Add some private transform apis
Some of the graphene_matrix_transform apis don't work
correctly with projective matrices, so add our own
variants.
Asier Sarasua Garmendia [Tue, 1 Sep 2020 12:21:34 +0000 (12:21 +0000)]
Update Basque translation
Benjamin Otte [Tue, 1 Sep 2020 11:08:51 +0000 (11:08 +0000)]
Merge branch 'view-selection-model-3' into 'master'
list widgets: Use selection models in the api
See merge request GNOME/gtk!2512
Daniel Mustieles [Tue, 1 Sep 2020 09:05:08 +0000 (11:05 +0200)]
Updated Spanish translation
Matthias Clasen [Mon, 31 Aug 2020 21:17:21 +0000 (21:17 +0000)]
Merge branch 'adwaita-more-border-spacing' into 'master'
Adwaita: Add border-spacing to some container widgets and style classes (properly)
See merge request GNOME/gtk!2479
Matthias Clasen [Mon, 31 Aug 2020 21:06:48 +0000 (17:06 -0400)]
list widgets: Use selection models in the api
Change the apis in GtkListView, GtkColumnView and
GtkGridView to be explicitly about GtkSelectionModel,
to make it obvious that the widgets handle selection.
Update all users.
Matej Urbančič [Mon, 31 Aug 2020 19:53:05 +0000 (21:53 +0200)]
Updated Slovenian translation
Matej Urbančič [Mon, 31 Aug 2020 19:50:01 +0000 (21:50 +0200)]
Updated Slovenian translation
Matthias Clasen [Mon, 31 Aug 2020 17:37:52 +0000 (13:37 -0400)]
NEWS: Updates
Matthias Clasen [Mon, 31 Aug 2020 16:30:21 +0000 (16:30 +0000)]
Merge branch 'wip/baedert/for-master' into 'master'
Wip/baedert/for master
Closes #2777
See merge request GNOME/gtk!2503
Matthias Clasen [Mon, 31 Aug 2020 16:17:05 +0000 (16:17 +0000)]
Merge branch 'fix_resource_leak_in_gdkdisplayclose_gtk4' into 'master'
Fix resource leak in gdk_display_close() under Wayland
See merge request GNOME/gtk!2511
Matthias Clasen [Mon, 31 Aug 2020 16:05:53 +0000 (12:05 -0400)]
pagesetupdialog: Just use labels in check buttons
Check buttons lost their ability to hold general
content. And while that is maybe sad, the tiny
images here are not really useful anyway, and
should just go away.
Julien Ropé [Mon, 31 Aug 2020 15:26:18 +0000 (17:26 +0200)]
Fix resource leak in gdk_display_close() under Wayland
When using the gdk_display_close(), the handle to the Wayland compositor was not released. This could cause the consumption of all available handles, preventing other processes from accessing the display.
Fixing this by calling wl_display_disconnect() when releasing the GdkWaylandDisplay object.
Signed-off-by: Julien Ropé <jrope@redhat.com>
Matthias Clasen [Mon, 31 Aug 2020 14:50:14 +0000 (10:50 -0400)]
Fix a typo
sicklylife [Mon, 31 Aug 2020 14:36:14 +0000 (14:36 +0000)]
Update Japanese translation
sicklylife [Mon, 31 Aug 2020 14:30:59 +0000 (14:30 +0000)]
Update Japanese translation
Boyuan Yang [Mon, 31 Aug 2020 13:44:27 +0000 (13:44 +0000)]
Update Chinese (China) translation
Matthias Clasen [Mon, 31 Aug 2020 12:20:25 +0000 (08:20 -0400)]
Fix up the focus-chain tests
Several typos here, and some of the expected
output changes due to widget class changes.
Matthias Clasen [Mon, 31 Aug 2020 12:13:20 +0000 (08:13 -0400)]
doc shooter: Remove radio button remnants
Rafael Fontenelle [Mon, 31 Aug 2020 11:12:54 +0000 (11:12 +0000)]
Update Brazilian Portuguese translation
Jakub Steiner [Mon, 31 Aug 2020 09:27:29 +0000 (11:27 +0200)]
Merge branch 'nana-4/gtk-fix-circular-button-styling'
nana-4 [Fri, 28 Aug 2020 12:56:30 +0000 (21:56 +0900)]
Adwaita: Ensure button.circular is a perfect circle
It seems the commit
9d60047616661dc073ca6310193c2e18a3aaa59c had no
effect, even on image buttons.
Jakub Steiner [Mon, 17 Aug 2020 11:18:07 +0000 (13:18 +0200)]
Adwaita: rich-list styling
FIXME: why is the second list in Demo>List Box>Controls taller?
Yuri Chornoivan [Mon, 31 Aug 2020 06:13:57 +0000 (06:13 +0000)]
Update Ukrainian translation
Kukuh Syafaat [Mon, 31 Aug 2020 06:04:08 +0000 (06:04 +0000)]
Update Indonesian translation
Kukuh Syafaat [Mon, 31 Aug 2020 06:02:57 +0000 (06:02 +0000)]
Update Indonesian translation
Matthias Clasen [Mon, 31 Aug 2020 02:25:56 +0000 (22:25 -0400)]
migration guide: Mention button hierarchy changes
Matthias Clasen [Mon, 31 Aug 2020 02:25:36 +0000 (22:25 -0400)]
Drop GtkRadioButton
Matthias Clasen [Mon, 31 Aug 2020 01:07:20 +0000 (21:07 -0400)]
builder-tool: Replace radio buttons by check buttons
For --3to4, replace GtkRadioButton by either GtkCheckButton
or GtkToggleButton, depending on the value of :draw-indicator.
Update the testsuite to cover this.
Matthias Clasen [Mon, 31 Aug 2020 02:17:02 +0000 (22:17 -0400)]
widget-factory: Stop using radio buttons
Use grouped toggle buttons for the view switcher
on page 2.
Matthias Clasen [Mon, 31 Aug 2020 01:51:20 +0000 (21:51 -0400)]
iconbrowser: Stop using radio buttons
Replace them with grouped toggle buttons.
Matthias Clasen [Mon, 31 Aug 2020 01:50:45 +0000 (21:50 -0400)]
fontrendering demo: Stop using radio buttons
Replace them with grouped toggled buttons.
Matthias Clasen [Mon, 31 Aug 2020 01:48:00 +0000 (21:48 -0400)]
togglebutton: Add grouping
This is the replacement for groups of radiobuttons
with draw-indicator = FALSE.
Matthias Clasen [Mon, 31 Aug 2020 00:59:05 +0000 (20:59 -0400)]
Remove GtkRadioButton uses in ui files in tests
Matthias Clasen [Mon, 31 Aug 2020 00:57:25 +0000 (20:57 -0400)]
Remove GtkRadioButton references in the docs
Matthias Clasen [Sun, 30 Aug 2020 23:36:27 +0000 (19:36 -0400)]
Clean up uses of gtk_toggle_button_get/set_active
Replace all uses on check buttons by the corresponding
check button api.
Matthias Clasen [Sun, 30 Aug 2020 22:56:35 +0000 (18:56 -0400)]
docs: Update the gallery image for check buttons
Show grouped and ungrouped check buttons.
Matthias Clasen [Sun, 30 Aug 2020 22:55:47 +0000 (18:55 -0400)]
doc shooter: Drop radio buttons
Instead, show grouped checkbuttons.
Matthias Clasen [Sun, 30 Aug 2020 22:54:53 +0000 (18:54 -0400)]
build: The doc shooter works without x11 now
No need to restrict the build to just x11.
We're not using pixmaps anymore.
Matthias Clasen [Sun, 30 Aug 2020 22:43:33 +0000 (18:43 -0400)]
Drop a long-dead test
We don't parse rc files anymore. Time for testrc.c to go.
Matthias Clasen [Sun, 30 Aug 2020 22:21:48 +0000 (18:21 -0400)]
tests: Stop using radio buttons
Use grouped check buttons.
Matthias Clasen [Sun, 30 Aug 2020 22:21:22 +0000 (18:21 -0400)]
checkbutton: Reuse a helper function
Matthias Clasen [Sun, 30 Aug 2020 22:19:05 +0000 (18:19 -0400)]
checkbutton: Fix clicking on the last group member
Clicking on the last group member was letting me
uncheck it, creating a radio group without active
item, which is not what we want.
Matthias Clasen [Sun, 30 Aug 2020 21:57:35 +0000 (17:57 -0400)]
pagesetupdialog: Drop gtkradiobutton.h include
No longer used.
Matthias Clasen [Sun, 30 Aug 2020 21:56:11 +0000 (17:56 -0400)]
stackswitcher: Drop gtkradiobutton.h include
No longer used.
Matthias Clasen [Sun, 30 Aug 2020 21:55:54 +0000 (17:55 -0400)]
inspector: Drop gtkradiobutton.h include
No longer used.
Matthias Clasen [Sun, 30 Aug 2020 21:55:13 +0000 (17:55 -0400)]
checkbutton: Drop gtkradiobutton.h include
No longer used.
Matthias Clasen [Sun, 30 Aug 2020 21:51:21 +0000 (17:51 -0400)]
mountoperation: Stop using radio buttons
Use grouped check buttons instead.
Matthias Clasen [Sun, 30 Aug 2020 21:43:00 +0000 (17:43 -0400)]
printeroptionwidget: Stop using radio buttons
Use grouped check buttons instead.
Matthias Clasen [Mon, 31 Aug 2020 01:21:38 +0000 (21:21 -0400)]
gtk-demo: Fix up the fontrendering demo
Matthias Clasen [Sun, 30 Aug 2020 22:01:45 +0000 (22:01 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
Matthiasc/for master
Closes #3104
See merge request GNOME/gtk!2507
Matthias Clasen [Sun, 30 Aug 2020 21:35:53 +0000 (17:35 -0400)]
gtk-demo: Port to font explorer to grouped checkbuttons
Stop using radio buttons here.
Matthias Clasen [Sun, 30 Aug 2020 21:05:43 +0000 (17:05 -0400)]
widget-factory: Fix up radio buttons
Keep calling them radiobutton, since that is what they are.
And make the insensitive second group of three match what
we have in gtk3-widget-factory, and be parallel to the
insensitive checkbuttons next to it.
Matthias Clasen [Sun, 30 Aug 2020 21:00:15 +0000 (17:00 -0400)]
printdialog: Make collate image smaller
This matches the appearance on GTK 3, and prevents
the checkbuttons next to the image from being spaced
out.
Matthias Clasen [Sun, 30 Aug 2020 20:58:17 +0000 (16:58 -0400)]
printdialog: Fix radio groups
We need to use grouped checkbuttons now.
Matthias Clasen [Sun, 30 Aug 2020 20:41:02 +0000 (16:41 -0400)]
fontchooser: Fix radio groups for features
We need to use grouped checkbuttons now.
Matthias Clasen [Sun, 30 Aug 2020 17:14:55 +0000 (13:14 -0400)]
Better fontconfig suppression
Matthias Clasen [Sun, 30 Aug 2020 17:11:39 +0000 (13:11 -0400)]
inspector: Add some translator comments
Some of the strings we have here are hard to translate,
so leave some hints, and some context.
Fixes: #3104
Matthias Clasen [Sun, 30 Aug 2020 12:59:13 +0000 (08:59 -0400)]
inspector: Add a dark background to the recorder
Add a button to toggle the background in the node
view between dark and light. This helps to discern
the borders of some nodes.
Matthias Clasen [Sun, 30 Aug 2020 12:34:30 +0000 (08:34 -0400)]
Another attempt to make circular buttons square
circular button, square hole...
Matthias Clasen [Sun, 30 Aug 2020 12:29:24 +0000 (12:29 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
Matthiasc/for master
Closes #3098
See merge request GNOME/gtk!2506
Bruce Cowan [Sun, 30 Aug 2020 11:46:48 +0000 (11:46 +0000)]
Update British English translation
Asier Sarasua Garmendia [Sun, 30 Aug 2020 10:26:53 +0000 (10:26 +0000)]
Update Basque translation
Asier Sarasua Garmendia [Sun, 30 Aug 2020 10:23:55 +0000 (10:23 +0000)]
Update Basque translation
Matthias Clasen [Sat, 29 Aug 2020 20:42:30 +0000 (16:42 -0400)]
gtk-demo: Cosmetic change to the css shadows demo
Make the text view in the bottom take up the bulk
of the window, as it used to be.
Matthias Clasen [Sat, 29 Aug 2020 20:29:28 +0000 (16:29 -0400)]
page setup dialog: Prevent cascading paper dialogs
We trigger the paper dialog when the "manage" item
in the dropdown is selected. But the selection also
changes due to internal changes, such as reloading
the custom paper list when the paper dialog is
closed. We need to be extra careful to avoid triggering
another paper dialog when that happens.
Fixes: #3098
Matthias Clasen [Sat, 29 Aug 2020 20:00:01 +0000 (16:00 -0400)]
print dialog: Prevent cascading paper dialogs
We trigger the paper dialog when the "manage" item
in the dropdown is selected. But the selection also
changes due to internal changes, such as reloading
the custom paper list when the paper dialog is
closed. We need to be extra careful to avoid triggering
another paper dialog when that happens.
Matthias Clasen [Sat, 29 Aug 2020 17:37:18 +0000 (17:37 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
Matthiasc/for master
See merge request GNOME/gtk!2504
Matthias Clasen [Sat, 29 Aug 2020 16:12:09 +0000 (12:12 -0400)]
css: Fix parsing of scientific notation
The parser got its chars mixed up while parsing numbers
like 2.3e-04. While it is unlikely to meet such numbers
in human-generated css, we do have them e.g. when saving
render node trees with transforms.
Also add some css parser tests for number parsing.
Boyuan Yang [Sat, 29 Aug 2020 15:22:48 +0000 (15:22 +0000)]
Update Chinese (China) translation
Timm Bäder [Fri, 7 Aug 2020 03:45:30 +0000 (05:45 +0200)]
Change button hierarchy
A radiobutton without indicator is really just a togglebutton with a
group.
A radiobutton with indicator is really just a checkbutton with a group.
Make checkbutton its own widget not inheriting from GtkButton.
GtkRadioButton could be removed but it stays for now.
Radiobutton && !draw-indicator => Togglebutton
Checkbutton && !draw-indicator => Togglebutton
Radiobutton && draw-indicator => CheckButton + group
Timm Bäder [Sat, 29 Aug 2020 10:03:20 +0000 (12:03 +0200)]
rendernodes: Whitespace
Timm Bäder [Sat, 29 Aug 2020 09:38:07 +0000 (11:38 +0200)]
wayland: Fix a GSettingsSchema leak
Timm Bäder [Sat, 29 Aug 2020 09:30:45 +0000 (11:30 +0200)]
gl renderer: Adjust gaussian blur sigma
To look more like what browsers do.
Timm Bäder [Sat, 29 Aug 2020 09:29:55 +0000 (11:29 +0200)]
testoutsetshadowdrawing: Make window background white
This makes it easier to compare the rendering with other sources.